package com.probox.common.entity.domain.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户信息、等级关系映射对象 customer_level_info
 *
 * @author zsy
 * @date 2021-05-27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("customer_level_info")
@ApiModel(description = "客户等级关系映射类")
public class CustomerLevelInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 客户等级关系id
     */
    @ApiModelProperty(value = "客户等级关系id")
    @TableId(value = "LEVEL_INFO_ID", type = IdType.AUTO)
    private Long levelInfoId;

    /**
     * 客户ID
     */
    @ApiModelProperty(value = "客户ID")
    @Excel(name = "客户ID")
    private Long customerUid;
    /**
     * 等级ID
     */
    @ApiModelProperty(value = "等级ID")
    @Excel(name = "等级ID")
    private Long levelUid;

    /**
     * 经验值
     */
    private Long score;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 到期时间
     */
    @ApiModelProperty(value = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;


    /**
     * 状态 1有效 0无效
     */
//    @Excel(name = "状态 1有效 0无效")
    @ApiModelProperty(value = "状态")
    private String status;

    @TableField(exist = false)
    private Long customeRgrade;

}
